Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not allow asymmetric tables in pbs #5853

Merged
merged 6 commits into from
Sep 14, 2022

Conversation

danieltabacaru
Copy link
Collaborator

@danieltabacaru danieltabacaru commented Sep 14, 2022

What, How & Why?

Do not allow asymmetric tables in schemas when using partition based sync.
Fixes #5691.

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed.

Copy link
Contributor

@jbreams jbreams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question. Otherwise it looks good!

@@ -80,7 +80,7 @@ class ObjectSchema {
bool property_is_computed(Property const& property) const noexcept;

void validate(Schema const& schema, std::vector<ObjectSchemaValidationException>& exceptions,
bool for_sync) const;
uint64_t validation_mode) const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this take a SchemaValidationMode rather than a uint64_t?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure :)

@danieltabacaru danieltabacaru force-pushed the dt/do_not_allow_asymmetric_objects_in_pbs branch from 436bb0f to e38ad5f Compare September 14, 2022 15:54
@danieltabacaru danieltabacaru merged commit e7e2b8a into master Sep 14, 2022
@danieltabacaru danieltabacaru deleted the dt/do_not_allow_asymmetric_objects_in_pbs branch September 14, 2022 17:40
tgoyne added a commit that referenced this pull request Sep 16, 2022
…nification

* origin/master:
  Stop forcing enums to be 64 bits unnecessarily
  clean up documentation of internal fields in config structs
  SyncConfig should be default constructible
  Traversal functions use IteratorControl values rather than true/false which is more expressive (#5857)
  Fix handling of 4-byte UTF8 values on Windows (#5803)
  Encode links in a way the server can understand (#5835)
  expose `Group::remove_table` in the C API (#5860)
  Disable auto refresh for old realm during migration (#5856)
  Expose `list_find` in the c api (#5848)
  Do not allow asymmetric tables in pbs (#5853)
  Refactor link tracing code (#5796)
  Expose `Obj::get_parent_object` in the C API (#5851)
  Update app.hpp (#5854)
  Fix appending to list ignores existing query (#5850)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants